﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'V' AND name = 'Accident_View')
BEGIN
  DROP  View Accident_View
END
GO
CREATE View Accident_View 
AS
  SELECT A.*,B.EnterpriseName,B.Addess FROM Accident A 
JOIN Enterprises_View B ON A.EnterpriseID=B.EnterpriseID
GO